Skip to content

Adding pathlib.File#7

Merged
LandonTClipp merged 1 commit intochigopher:masterfrom
LandonTClipp:file
Jul 7, 2020
Merged

Adding pathlib.File#7
LandonTClipp merged 1 commit intochigopher:masterfrom
LandonTClipp:file

Conversation

@LandonTClipp
Copy link
Copy Markdown
Contributor

@LandonTClipp LandonTClipp commented Jul 7, 2020

pathlib.File is meant to be a thin wrapper around afero.File. The philosophy behind doing this is that we can extend the API further if we want to. Originally I had Open() and OpenFile() returning an afero.File but I think this limits the API too much.

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 7, 2020

Codecov Report

Merging #7 into master will increase coverage by 9.91%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #7      +/-   ##
==========================================
+ Coverage   60.67%   70.58%   +9.91%     
==========================================
  Files           1        1              
  Lines         178      187       +9     
==========================================
+ Hits          108      132      +24     
+ Misses         63       45      -18     
- Partials        7       10       +3     
Impacted Files Coverage Δ
path.go 70.58% <80.00%> (+9.91%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ee25600...acf3d82. Read the comment docs.

Adding tests

Add more tests and fix bug where IsSymlink didn't work properly because
it called Stat and not Lstat
@LandonTClipp LandonTClipp merged commit 290d167 into chigopher:master Jul 7, 2020
@LandonTClipp LandonTClipp deleted the file branch July 7, 2020 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant